<% provide(:title, "登陆") %>

<h1>登陆</h1>
<div class="row">
  <div class="span6 offset3">
    <%= form_for(:session, url: sessions_path) do |f| %>

        <%= f.label :email,"账户名或Email" %>
        <%= f.text_field :email %>

        <%= f.label :password,"密码" %>
        <%= f.password_field :password %>

        <%= f.submit "登陆", class: "btn btn-large btn-primary" %>
    <% end %>

    <p>还没有账户? <%= link_to "立即注册", signup_path %></p>
  </div>
</div>